package com.yonyou.gmmc.service.forum.model;

import java.util.Date;

import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TT_FORUM_TOPIC")
public class TtForumTopic {
    @Id
    @Column(name = "TOPIC_ID")
    @SequenceGenerator(name="",sequenceName="SEQ_TT_FORUM_TOPIC")
    private Long topicId;

    @Column(name = "POTENTIAL_USER_ID")
    private Long potentialUserId;

    @Column(name = "USER_TYPE")
    private Long userType;

    @Column(name = "BOARD_ID")
    private Long boardId;

    @Column(name = "TRANSPOND_TOPIC_ID")
    private Long transpondTopicId;

    @Column(name = "TOPIC_NAME")
    private String topicName;

    @Column(name = "TOPIC_CONTENT")
    private String topicContent;

    @Column(name = "TOPIC_CONTENT_PATH")
    private String topicContentPath;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "POST_TIME")
    private Date postTime;

    @Column(name = "IF_TOP")
    private Long ifTop;

    @Column(name = "IF_ESSENCE")
    private Long ifEssence;

    @Column(name = "READ_COUNT")
    private Long readCount;

    @Column(name = "TRANSPOND_COUNT")
    private Long transpondCount;

    @Column(name = "REPLY_COUNT")
    private Long replyCount;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "CREATE_DATE")
    private Date createDate;

    @Column(name = "CREATE_BY")
    private Long createBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "UPDATE_DATE")
    private Date updateDate;

    @Column(name = "UPDATE_BY")
    private Long updateBy;

    @Column(name = "DELETE_FLAG")
    private Short deleteFlag;
    
    //发帖人昵称和头像
    @Column(name = "USER_NAME")
    private String userName;
    
    @Column(name = "HEAD_IMGURL")
    private String headImgURL;
    
    @Column(name = "RANDOM")
    private Integer random;
    
    //标题图片
    //private List<TmForumTopicImg> tmForumTopicImg;

    /**
     * @return TOPIC_ID
     */
    public Long getTopicId() {
        return topicId;
    }

    /**
     * @param topicId
     */
    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    /**
     * @return POTENTIAL_USER_ID
     */
    public Long getPotentialUserId() {
        return potentialUserId;
    }

    /**
     * @param potentialUserId
     */
    public void setPotentialUserId(Long potentialUserId) {
        this.potentialUserId = potentialUserId;
    }

    /**
     * @return USER_TYPE
     */
    public Long getUserType() {
        return userType;
    }

    /**
     * @param userType
     */
    public void setUserType(Long userType) {
        this.userType = userType;
    }

    /**
     * @return BOARD_ID
     */
    public Long getBoardId() {
        return boardId;
    }

    /**
     * @param boardId
     */
    public void setBoardId(Long boardId) {
        this.boardId = boardId;
    }

    /**
     * @return TRANSPOND_TOPIC_ID
     */
    public Long getTranspondTopicId() {
        return transpondTopicId;
    }

    /**
     * @param transpondTopicId
     */
    public void setTranspondTopicId(Long transpondTopicId) {
        this.transpondTopicId = transpondTopicId;
    }

    /**
     * @return TOPIC_NAME
     */
    public String getTopicName() {
        return topicName;
    }

    /**
     * @param topicName
     */
    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    /**
     * @return TOPIC_CONTENT
     */
    public String getTopicContent() {
        return topicContent;
    }

    /**
     * @param topicContent
     */
    public void setTopicContent(String topicContent) {
        this.topicContent = topicContent;
    }

    /**
     * @return TOPIC_CONTENT_PATH
     */
    public String getTopicContentPath() {
        return topicContentPath;
    }

    /**
     * @param topicContentPath
     */
    public void setTopicContentPath(String topicContentPath) {
        this.topicContentPath = topicContentPath;
    }

    /**
     * @return POST_TIME
     */
    public Date getPostTime() {
        return postTime;
    }

    /**
     * @param postTime
     */
    public void setPostTime(Date postTime) {
        this.postTime = postTime;
    }

    /**
     * @return IF_TOP
     */
    public Long getIfTop() {
        return ifTop;
    }

    /**
     * @param ifTop
     */
    public void setIfTop(Long ifTop) {
        this.ifTop = ifTop;
    }

    /**
     * @return IF_ESSENCE
     */
    public Long getIfEssence() {
        return ifEssence;
    }

    /**
     * @param ifEssence
     */
    public void setIfEssence(Long ifEssence) {
        this.ifEssence = ifEssence;
    }

    /**
     * @return READ_COUNT
     */
    public Long getReadCount() {
        return readCount;
    }

    /**
     * @param readCount
     */
    public void setReadCount(Long readCount) {
        this.readCount = readCount;
    }

    /**
     * @return TRANSPOND_COUNT
     */
    public Long getTranspondCount() {
        return transpondCount;
    }

    /**
     * @param transpondCount
     */
    public void setTranspondCount(Long transpondCount) {
        this.transpondCount = transpondCount;
    }

    /**
     * @return REPLY_COUNT
     */
    public Long getReplyCount() {
        return replyCount;
    }

    /**
     * @param replyCount
     */
    public void setReplyCount(Long replyCount) {
        this.replyCount = replyCount;
    }

    /**
     * @return CREATE_DATE
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return CREATE_BY
     */
    public Long getCreateBy() {
        return createBy;
    }

    /**
     * @param createBy
     */
    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    /**
     * @return UPDATE_DATE
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * @return UPDATE_BY
     */
    public Long getUpdateBy() {
        return updateBy;
    }

    /**
     * @param updateBy
     */
    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * @return DELETE_FLAG
     */
    public Short getDeleteFlag() {
        return deleteFlag;
    }

    /**
     * @param deleteFlag
     */
    public void setDeleteFlag(Short deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getHeadImgURL() {
		return headImgURL;
	}

	public void setHeadImgURL(String headImgURL) {
		this.headImgURL = headImgURL;
	}

	public Integer getRandom() {
		return random;
	}

	public void setRandom(Integer random) {
		this.random = random;
	}

	/*public List<TmForumTopicImg> getTmForumTopicImg() {
		return tmForumTopicImg;
	}

	public void setTmForumTopicImg(List<TmForumTopicImg> tmForumTopicImg) {
		this.tmForumTopicImg = tmForumTopicImg;
	}*/

}